package YottaTron.Actions;

import YottaTron.Sprites.Sprite;
import YottaTron.*;

/**
 *
 * @author Cenda
 */
public abstract class Action {

public static final byte ACCELERATE_ACTION = 0;
public static final byte BRAKE_ACTION = 1;
public static final byte REVERSE_ACTION = 2;
public static final byte TURN_RIGHT_ACTION = 3;
public static final byte TURN_LEFT_ACTION = 4;
public static final byte SHOOT_ACTION = 5;
public static final byte COOLDOWN_ACTION = 6;
public static final byte PLAYER_ACTION = 15;

Sprite sprite;
public int iterations;
public float startingTime;
public float finishTime = Float.MAX_VALUE;
Runner r;
public byte type;
public boolean finished;
public boolean saveToHistory = false;


//vraci true pokud akce pokracuje, nebo false pokud uz skoncila - pote je odstranena
abstract public boolean nextStep(float deltaTime);



}
